{% extends "base.html" %}

{% block title %}NetBook Home{% endblock %}

{% block content %}
<div id='note_list'>
<table align="center" border="1px">
    <thead>
    <tr>
	<th>categories</th>
	<th>notes</th>
	<th>users</th>
    </tr>
    </thead>
    <tbody>
	<tr valign="top">
	    <td>
		<p><input type="button" value="Public" onmouseup="updateNoteList()"/></p>
		<p><input type="button" value="Private"/></p>
		<p><input type="button" value="Shared"/></p>
		<p><input type="button" value="Favorite"/></p>
	    </td>
	    <td id="notelist">
	    {% for n in notelist %}
		<p><a href="/note/{{ n.id }}/">{{ n.title }}</a></p>
		<p>{{ n.content|truncatewords:"128" }}...</p>
		<p><b> Create Time:{{ n.time_create }} Last update: {{ n.time_lastupdate }}</b></p>
		<hr>
	    {% endfor %}
	    </td>
	    <td>
	    </td>
	</tr>
    </tbody>
</table>
</div>
{% endblock %}
